package com.niiwoo.civet.mobile.vo.request.databackflow;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lujing on 2017/12/2.
 */
@Getter
@Setter
@ToString
@ApiModel("短信息数据回流")
public class MessageInfoRequestVO  implements Serializable{

    @ApiModelProperty(value = "设备id", required = true)
    private String deviceId;
    @ApiModelProperty(value = "短信息", required = true)
    private List<MessageInfo> messageList;




    @Getter
    @Setter
    @ToString
    @ApiModel("短信息")
    public static class MessageInfo implements Serializable{
        @ApiModelProperty(value = "手机号码", required = true)
        private String mobile;
        @ApiModelProperty(value = "时间-毫秒时间戳", required = true)
        private Long time;
        @ApiModelProperty(value = "内容", required = true)
        private String content;
        @ApiModelProperty(value = "发送or接收-1-发送 2-接收", required = true)
        private Integer sendOrReceive;
    }
}
